package top.bigdata.model.dto.video;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "视频数据的平均值")
public class AvgData {
    @Schema(description = "分区id")
    private int tid;

    @Schema(description = "分区名称")
    private String name;

    @Schema(description = "平均值")
    private long avg;

    @Schema(description = "统计数量")
    private int count;

    @Schema(description = "子分区数据")
    private final List<AvgData> subZones = new ArrayList<>();

    public AvgData(int tid, long avg, int count) {
        this.tid = tid;
        this.avg = avg;
        this.count = count;
    }
}
